from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
import os
from ament_index_python.packages import get_package_share_directory

def generate_launch_description():
    launch1_path = os.path.join(get_package_share_directory('airsim_ros_pkgs'), 'launch', 'airsim_node.launch.py')
    launch2_path = os.path.join(get_package_share_directory('yolo_detect_pkg'), 'launch', 'yolo_detect_launch.py')
    launch3_path = os.path.join(get_package_share_directory('ar_track_landing'), 'launch', 'ar_track_landing_launch.py')
    launch4_path = os.path.join(get_package_share_directory('targer_tracker'), 'launch', 'target_tracker_launch.py')
    launch5_path = os.path.join(get_package_share_directory('aruco_ros'), 'launch', 'single.launch.py')
    launch5_path = os.path.join(get_package_share_directory('yolo_byte_traker'), 'launch', 'yolo_byte_traker_launch.py')
    return LaunchDescription([
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(launch1_path)
        ),
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(launch2_path)
        ),
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(launch3_path)
        ),
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(launch4_path)
        ),
        IncludeLaunchDescription(
            PythonLaunchDescriptionSource(launch5_path)
        )
    ])